<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perl5005delta - what&#39;s new for perl5.005 - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perl5005delta">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5005delta.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perl5005delta">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perl5005delta">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perl5005delta">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perl5005delta">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perl5005delta">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perl5005delta">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perl5005delta">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perl5005delta">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perl5005delta">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perl5005delta">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perl5005delta">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perl5005delta">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perl5005delta">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perl5005delta">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perl5005delta">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perl5005delta">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perl5005delta">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perl5005delta">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perl5005delta">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perl5005delta">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perl5005delta">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perl5005delta">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perl5005delta">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perl5005delta">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perl5005delta">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perl5005delta">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perl5005delta">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perl5005delta">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perl5005delta">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perl5005delta">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perl5005delta">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perl5005delta">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perl5005delta">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perl5005delta">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perl5005delta">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perl5005delta">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perl5005delta">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perl5005delta">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perl5005delta">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perl5005delta">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perl5005delta">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perl5005delta">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perl5005delta">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perl5005delta">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perl5005delta">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perl5005delta">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perl5005delta">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perl5005delta">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perl5005delta">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perl5005delta">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perl5005delta">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perl5005delta">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perl5005delta">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perl5005delta">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perl5005delta">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perl5005delta">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perl5005delta">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perl5005delta">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perl5005delta">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perl5005delta">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perl5005delta">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perl5005delta">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perl5005delta">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perl5005delta">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perl5005delta">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perl5005delta">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perl5005delta">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perl5005delta">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perl5005delta">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perl5005delta">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perl5005delta">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perl5005delta">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perl5005delta">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perl5005delta">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perl5005delta">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perl5005delta">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perl5005delta">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perl5005delta">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perl5005delta">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perl5005delta">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5005delta.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perl5005delta">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perl5005delta">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perl5005delta">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perl5005delta">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perl5005delta">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perl5005delta">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perl5005delta">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perl5005delta">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perl5005delta">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perl5005delta">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perl5005delta">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perl5005delta">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perl5005delta">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perl5005delta">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perl5005delta">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perl5005delta">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perl5005delta">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perl5005delta">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perl5005delta">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perl5005delta">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perl5005delta">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perl5005delta">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perl5005delta">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perl5005delta">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perl5005delta">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perl5005delta">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perl5005delta">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perl5005delta">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perl5005delta">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perl5005delta">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perl5005delta">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perl5005delta">5.35.1</a>
          <a class="dropdown-item active" href="perl5005delta.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5005delta.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perl5005delta.html">perl5005delta</a>
          <div id="more">
            (<a href="perl5005delta.txt">source</a>,
            <a href="https://metacpan.org/pod/perl5005delta">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#About-the-new-versioning-system">About the new versioning system</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Incompatible-Changes">Incompatible Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#WARNING:-This-version-is-not-binary-compatible-with-Perl-5.004.">WARNING: This version is not binary compatible with Perl 5.004.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Default-installation-structure-has-changed">Default installation structure has changed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Perl-Source-Compatibility">Perl Source Compatibility</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#C-Source-Compatibility">C Source Compatibility</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Binary-Compatibility">Binary Compatibility</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Security-fixes-may-affect-compatibility">Security fixes may affect compatibility</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Relaxed-new-mandatory-warnings-introduced-in-5.004">Relaxed new mandatory warnings introduced in 5.004</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Licensing">Licensing</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Core-Changes">Core Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Threads">Threads</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Compiler">Compiler</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Regular-Expressions">Regular Expressions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Improved-malloc()">Improved malloc()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Quicksort-is-internally-implemented">Quicksort is internally implemented</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Reliable-signals">Reliable signals</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Reliable-stack-pointers">Reliable stack pointers</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#More-generous-treatment-of-carriage-returns">More generous treatment of carriage returns</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Memory-leaks">Memory leaks</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Better-support-for-multiple-interpreters">Better support for multiple interpreters</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Behavior-of-local()-on-array-and-hash-elements-is-now-well-defined">Behavior of local() on array and hash elements is now well-defined</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#%25!-is-transparently-tied-to-the-Errno-module">%! is transparently tied to the Errno module</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Pseudo-hashes-are-supported">Pseudo-hashes are supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#EXPR-foreach-EXPR-is-supported">EXPR foreach EXPR is supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Keywords-can-be-globally-overridden">Keywords can be globally overridden</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#$%5EE-is-meaningful-on-Win32">$^E is meaningful on Win32</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#foreach-(1..1000000)-optimized">foreach (1..1000000) optimized</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Foo::-can-be-used-as-implicitly-quoted-package-name">Foo:: can be used as implicitly quoted package name</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#exists-$Foo::%7BBar::%7D-tests-existence-of-a-package">exists $Foo::{Bar::} tests existence of a package</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Better-locale-support">Better locale support</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Experimental-support-for-64-bit-platforms">Experimental support for 64-bit platforms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#prototype()-returns-useful-results-on-builtins">prototype() returns useful results on builtins</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Extended-support-for-exception-handling">Extended support for exception handling</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Re-blessing-in-DESTROY()-supported-for-chaining-DESTROY()-methods">Re-blessing in DESTROY() supported for chaining DESTROY() methods</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#All-printf-format-conversions-are-handled-internally">All printf format conversions are handled internally</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#New-INIT-keyword">New INIT keyword</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#New-lock-keyword">New lock keyword</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#New-qr//-operator">New qr// operator</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#our-is-now-a-reserved-word">our is now a reserved word</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Tied-arrays-are-now-fully-supported">Tied arrays are now fully supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Tied-handles-support-is-better">Tied handles support is better</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#4th-argument-to-substr">4th argument to substr</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Negative-LENGTH-argument-to-splice">Negative LENGTH argument to splice</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Magic-lvalues-are-now-more-magical">Magic lvalues are now more magical</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#%3C%3E-now-reads-in-records">&lt;&gt; now reads in records</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Supported-Platforms">Supported Platforms</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#New-Platforms">New Platforms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Changes-in-existing-support">Changes in existing support</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Modules-and-Pragmata">Modules and Pragmata</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#New-Modules">New Modules</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Changes-in-existing-modules">Changes in existing modules</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Utility-Changes">Utility Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Documentation-Changes">Documentation Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#New-Diagnostics">New Diagnostics</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Obsolete-Diagnostics">Obsolete Diagnostics</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#Configuration-Changes">Configuration Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#BUGS">BUGS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#SEE-ALSO">SEE ALSO</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5005delta.html#HISTORY">HISTORY</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perl5005delta.html#NAME">#</a>NAME</h1>

<p>perl5005delta - what&#39;s new for perl5.005</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perl5005delta.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This document describes differences between the 5.004 release and this one.</p>

<h1 id="About-the-new-versioning-system"><a class="permalink" href="perl5005delta.html#About-the-new-versioning-system">#</a><a id="About"></a>About the new versioning system</h1>

<p>Perl is now developed on two tracks: a maintenance track that makes small, safe updates to released production versions with emphasis on compatibility; and a development track that pursues more aggressive evolution. Maintenance releases (which should be considered production quality) have subversion numbers that run from <code>1</code> to <code>49</code>, and development releases (which should be considered &quot;alpha&quot; quality) run from <code>50</code> to <code>99</code>.</p>

<p>Perl 5.005 is the combined product of the new dual-track development scheme.</p>

<h1 id="Incompatible-Changes"><a class="permalink" href="perl5005delta.html#Incompatible-Changes">#</a><a id="Incompatible"></a>Incompatible Changes</h1>

<h2 id="WARNING:-This-version-is-not-binary-compatible-with-Perl-5.004."><a class="permalink" href="perl5005delta.html#WARNING:-This-version-is-not-binary-compatible-with-Perl-5.004.">#</a><a id="WARNING"></a><a id="WARNING:-This-version-is-not-binary-compatible-with-Perl-5.004"></a>WARNING: This version is not binary compatible with Perl 5.004.</h2>

<p>Starting with Perl 5.004_50 there were many deep and far-reaching changes to the language internals. If you have dynamically loaded extensions that you built under perl 5.003 or 5.004, you can continue to use them with 5.004, but you will need to rebuild and reinstall those extensions to use them 5.005. See <i>INSTALL</i> for detailed instructions on how to upgrade.</p>

<h2 id="Default-installation-structure-has-changed"><a class="permalink" href="perl5005delta.html#Default-installation-structure-has-changed">#</a><a id="Default"></a>Default installation structure has changed</h2>

<p>The new Configure defaults are designed to allow a smooth upgrade from 5.004 to 5.005, but you should read <i>INSTALL</i> for a detailed discussion of the changes in order to adapt them to your system.</p>

<h2 id="Perl-Source-Compatibility"><a class="permalink" href="perl5005delta.html#Perl-Source-Compatibility">#</a><a id="Perl"></a>Perl Source Compatibility</h2>

<p>When none of the experimental features are enabled, there should be very few user-visible Perl source compatibility issues.</p>

<p>If threads are enabled, then some caveats apply. <code>@_</code> and <code>$_</code> become lexical variables. The effect of this should be largely transparent to the user, but there are some boundary conditions under which user will need to be aware of the issues. For example, <code>local(@_)</code> results in a &quot;Can&#39;t localize lexical variable @_ ...&quot; message. This may be enabled in a future version.</p>

<p>Some new keywords have been introduced. These are generally expected to have very little impact on compatibility. See <a href="perl5005delta.html#New-INIT-keyword">&quot;New <code>INIT</code> keyword&quot;</a>, <a href="perl5005delta.html#New-lock-keyword">&quot;New <code>lock</code> keyword&quot;</a>, and <a href="perl5005delta.html#New-qr%2F%2F-operator">&quot;New <code>qr//</code> operator&quot;</a>.</p>

<p>Certain barewords are now reserved. Use of these will provoke a warning if you have asked for them with the <code>-w</code> switch. See <a href="perl5005delta.html#our-is-now-a-reserved-word">&quot;<code>our</code> is now a reserved word&quot;</a>.</p>

<h2 id="C-Source-Compatibility"><a class="permalink" href="perl5005delta.html#C-Source-Compatibility">#</a><a id="C"></a>C Source Compatibility</h2>

<p>There have been a large number of changes in the internals to support the new features in this release.</p>

<ul>

<li><p>Core sources now require ANSI C compiler</p>

<p>An ANSI C compiler is now <b>required</b> to build perl. See <i>INSTALL</i>.</p>

</li>
<li><p>All Perl global variables must now be referenced with an explicit prefix</p>

<p>All Perl global variables that are visible for use by extensions now have a <code>PL_</code> prefix. New extensions should <code>not</code> refer to perl globals by their unqualified names. To preserve sanity, we provide limited backward compatibility for globals that are being widely used like <code>sv_undef</code> and <code>na</code> (which should now be written as <code>PL_sv_undef</code>, <code>PL_na</code> etc.)</p>

<p>If you find that your XS extension does not compile anymore because a perl global is not visible, try adding a <code>PL_</code> prefix to the global and rebuild.</p>

<p>It is strongly recommended that all functions in the Perl API that don&#39;t begin with <code>perl</code> be referenced with a <code>Perl_</code> prefix. The bare function names without the <code>Perl_</code> prefix are supported with macros, but this support may cease in a future release.</p>

<p>See <a href="perlapi.html">perlapi</a>.</p>

</li>
<li><p>Enabling threads has source compatibility issues</p>

<p>Perl built with threading enabled requires extensions to use the new <code>dTHR</code> macro to initialize the handle to access per-thread data. If you see a compiler error that talks about the variable <code>thr</code> not being declared (when building a module that has XS code), you need to add <code>dTHR;</code> at the beginning of the block that elicited the error.</p>

<p>The API function <code>perl_get_sv(&quot;@&quot;,GV_ADD)</code> should be used instead of directly accessing perl globals as <code>GvSV(errgv)</code>. The API call is backward compatible with existing perls and provides source compatibility with threading is enabled.</p>

<p>See <a href="perl5005delta.html#C-Source-Compatibility">&quot;C Source Compatibility&quot;</a> for more information.</p>

</li>
</ul>

<h2 id="Binary-Compatibility"><a class="permalink" href="perl5005delta.html#Binary-Compatibility">#</a><a id="Binary"></a>Binary Compatibility</h2>

<p>This version is NOT binary compatible with older versions. All extensions will need to be recompiled. Further binaries built with threads enabled are incompatible with binaries built without. This should largely be transparent to the user, as all binary incompatible configurations have their own unique architecture name, and extension binaries get installed at unique locations. This allows coexistence of several configurations in the same directory hierarchy. See <i>INSTALL</i>.</p>

<h2 id="Security-fixes-may-affect-compatibility"><a class="permalink" href="perl5005delta.html#Security-fixes-may-affect-compatibility">#</a><a id="Security"></a>Security fixes may affect compatibility</h2>

<p>A few taint leaks and taint omissions have been corrected. This may lead to &quot;failure&quot; of scripts that used to work with older versions. Compiling with -DINCOMPLETE_TAINTS provides a perl with minimal amounts of changes to the tainting behavior. But note that the resulting perl will have known insecurities.</p>

<p>Oneliners with the <code>-e</code> switch do not create temporary files anymore.</p>

<h2 id="Relaxed-new-mandatory-warnings-introduced-in-5.004"><a class="permalink" href="perl5005delta.html#Relaxed-new-mandatory-warnings-introduced-in-5.004">#</a><a id="Relaxed"></a>Relaxed new mandatory warnings introduced in 5.004</h2>

<p>Many new warnings that were introduced in 5.004 have been made optional. Some of these warnings are still present, but perl&#39;s new features make them less often a problem. See <a href="perl5005delta.html#New-Diagnostics">&quot;New Diagnostics&quot;</a>.</p>

<h2 id="Licensing"><a class="permalink" href="perl5005delta.html#Licensing">#</a>Licensing</h2>

<p>Perl has a new Social Contract for contributors. See <i>Porting/Contract</i>.</p>

<p>The license included in much of the Perl documentation has changed. Most of the Perl documentation was previously under the implicit GNU General Public License or the Artistic License (at the user&#39;s choice). Now much of the documentation unambiguously states the terms under which it may be distributed. Those terms are in general much less restrictive than the GNU GPL. See <a href="perl.html">perl</a> and the individual perl manpages listed therein.</p>

<h1 id="Core-Changes"><a class="permalink" href="perl5005delta.html#Core-Changes">#</a><a id="Core"></a>Core Changes</h1>

<h2 id="Threads"><a class="permalink" href="perl5005delta.html#Threads">#</a>Threads</h2>

<p>WARNING: Threading is considered an <b>experimental</b> feature. Details of the implementation may change without notice. There are known limitations and some bugs. These are expected to be fixed in future versions.</p>

<p>See <i>README.threads</i>.</p>

<h2 id="Compiler"><a class="permalink" href="perl5005delta.html#Compiler">#</a>Compiler</h2>

<p>WARNING: The Compiler and related tools are considered <b>experimental</b>. Features may change without notice, and there are known limitations and bugs. Since the compiler is fully external to perl, the default configuration will build and install it.</p>

<p>The Compiler produces three different types of transformations of a perl program. The C backend generates C code that captures perl&#39;s state just before execution begins. It eliminates the compile-time overheads of the regular perl interpreter, but the run-time performance remains comparatively the same. The CC backend generates optimized C code equivalent to the code path at run-time. The CC backend has greater potential for big optimizations, but only a few optimizations are implemented currently. The Bytecode backend generates a platform independent bytecode representation of the interpreter&#39;s state just before execution. Thus, the Bytecode back end also eliminates much of the compilation overhead of the interpreter.</p>

<p>The compiler comes with several valuable utilities.</p>

<p><code>B::Lint</code> is an experimental module to detect and warn about suspicious code, especially the cases that the <code>-w</code> switch does not detect.</p>

<p><code>B::Deparse</code> can be used to demystify perl code, and understand how perl optimizes certain constructs.</p>

<p><code>B::Xref</code> generates cross reference reports of all definition and use of variables, subroutines and formats in a program.</p>

<p><code>B::Showlex</code> show the lexical variables used by a subroutine or file at a glance.</p>

<p><code>perlcc</code> is a simple frontend for compiling perl.</p>

<p>See <code>ext/B/README</code>, <a href="B.html">B</a>, and the respective compiler modules.</p>

<h2 id="Regular-Expressions"><a class="permalink" href="perl5005delta.html#Regular-Expressions">#</a><a id="Regular"></a>Regular Expressions</h2>

<p>Perl&#39;s regular expression engine has been seriously overhauled, and many new constructs are supported. Several bugs have been fixed.</p>

<p>Here is an itemized summary:</p>

<dl>

<dt id="Many-new-and-improved-optimizations"><a class="permalink" href="perl5005delta.html#Many-new-and-improved-optimizations">#</a><a id="Many"></a>Many new and improved optimizations</dt>
<dd>

<p>Changes in the RE engine:</p>

<pre><code>Unneeded nodes removed;
Substrings merged together;
New types of nodes to process (SUBEXPR)* and similar expressions
    quickly, used if the SUBEXPR has no side effects and matches
    strings of the same length;
Better optimizations by lookup for constant substrings;
Better search for constants substrings anchored by $ ;</code></pre>

<p>Changes in Perl code using RE engine:</p>

<pre><code>More optimizations to s/longer/short/;
study() was not working;
/blah/ may be optimized to an analogue of index() if $&amp; $` $&#39; not seen;
Unneeded copying of matched-against string removed;
Only matched part of the string is copying if $` $&#39; were not seen;</code></pre>

</dd>
<dt id="Many-bug-fixes"><a class="permalink" href="perl5005delta.html#Many-bug-fixes">#</a><a id="Many1"></a>Many bug fixes</dt>
<dd>

<p>Note that only the major bug fixes are listed here. See <i>Changes</i> for others.</p>

<pre><code>Backtracking might not restore start of $3.
No feedback if max count for * or + on &quot;complex&quot; subexpression
    was reached, similarly (but at compile time) for {3,34567}
Primitive restrictions on max count introduced to decrease a 
    possibility of a segfault;
(ZERO-LENGTH)* could segfault;
(ZERO-LENGTH)* was prohibited;
Long REs were not allowed;
/RE/g could skip matches at the same position after a 
  zero-length match;</code></pre>

</dd>
<dt id="New-regular-expression-constructs"><a class="permalink" href="perl5005delta.html#New-regular-expression-constructs">#</a><a id="New"></a>New regular expression constructs</dt>
<dd>

<p>The following new syntax elements are supported:</p>

<pre><code class="plaintext">(?&lt;=RE)
(?&lt;!RE)
(?{ CODE })
(?i-x)
(?i:RE)
(?(COND)YES_RE|NO_RE)
(?&gt;RE)
\z</code></pre>

</dd>
<dt id="New-operator-for-precompiled-regular-expressions"><a class="permalink" href="perl5005delta.html#New-operator-for-precompiled-regular-expressions">#</a><a id="New1"></a>New operator for precompiled regular expressions</dt>
<dd>

<p>See <a href="perl5005delta.html#New-qr%2F%2F-operator">&quot;New <code>qr//</code> operator&quot;</a>.</p>

</dd>
<dt id="Other-improvements"><a class="permalink" href="perl5005delta.html#Other-improvements">#</a><a id="Other"></a>Other improvements</dt>
<dd>

<pre><code>	Better debugging output (possibly with colors),
            even from non-debugging Perl;
	RE engine code now looks like C, not like assembler;
	Behaviour of RE modifiable by `use re&#39; directive;
	Improved documentation;
	Test suite significantly extended;
	Syntax [:^upper:] etc., reserved inside character classes;</code></pre>

</dd>
<dt id="Incompatible-changes"><a class="permalink" href="perl5005delta.html#Incompatible-changes">#</a><a id="Incompatible1"></a>Incompatible changes</dt>
<dd>

<pre><code>(?i) localized inside enclosing group;
$( is not interpolated into RE any more;
/RE/g may match at the same position (with non-zero length)
    after a zero-length match (bug fix).</code></pre>

</dd>
</dl>

<p>See <a href="perlre.html">perlre</a> and <a href="perlop.html">perlop</a>.</p>

<h2 id="Improved-malloc()"><a class="permalink" href="perl5005delta.html#Improved-malloc()">#</a><a id="Improved"></a><a id="Improved-malloc"></a>Improved malloc()</h2>

<p>See banner at the beginning of <code>malloc.c</code> for details.</p>

<h2 id="Quicksort-is-internally-implemented"><a class="permalink" href="perl5005delta.html#Quicksort-is-internally-implemented">#</a><a id="Quicksort"></a>Quicksort is internally implemented</h2>

<p>Perl now contains its own highly optimized qsort() routine. The new qsort() is resistant to inconsistent comparison functions, so Perl&#39;s <code>sort()</code> will not provoke coredumps any more when given poorly written sort subroutines. (Some C library <code>qsort()</code>s that were being used before used to have this problem.) In our testing, the new <code>qsort()</code> required the minimal number of pair-wise compares on average, among all known <code>qsort()</code> implementations.</p>

<p>See <code>perlfunc/sort</code>.</p>

<h2 id="Reliable-signals"><a class="permalink" href="perl5005delta.html#Reliable-signals">#</a><a id="Reliable"></a>Reliable signals</h2>

<p>Perl&#39;s signal handling is susceptible to random crashes, because signals arrive asynchronously, and the Perl runtime is not reentrant at arbitrary times.</p>

<p>However, one experimental implementation of reliable signals is available when threads are enabled. See <code>Thread::Signal</code>. Also see <i>INSTALL</i> for how to build a Perl capable of threads.</p>

<h2 id="Reliable-stack-pointers"><a class="permalink" href="perl5005delta.html#Reliable-stack-pointers">#</a><a id="Reliable1"></a>Reliable stack pointers</h2>

<p>The internals now reallocate the perl stack only at predictable times. In particular, magic calls never trigger reallocations of the stack, because all reentrancy of the runtime is handled using a &quot;stack of stacks&quot;. This should improve reliability of cached stack pointers in the internals and in XSUBs.</p>

<h2 id="More-generous-treatment-of-carriage-returns"><a class="permalink" href="perl5005delta.html#More-generous-treatment-of-carriage-returns">#</a><a id="More"></a>More generous treatment of carriage returns</h2>

<p>Perl used to complain if it encountered literal carriage returns in scripts. Now they are mostly treated like whitespace within program text. Inside string literals and here documents, literal carriage returns are ignored if they occur paired with linefeeds, or get interpreted as whitespace if they stand alone. This behavior means that literal carriage returns in files should be avoided. You can get the older, more compatible (but less generous) behavior by defining the preprocessor symbol <code>PERL_STRICT_CR</code> when building perl. Of course, all this has nothing whatever to do with how escapes like <code>\r</code> are handled within strings.</p>

<p>Note that this doesn&#39;t somehow magically allow you to keep all text files in DOS format. The generous treatment only applies to files that perl itself parses. If your C compiler doesn&#39;t allow carriage returns in files, you may still be unable to build modules that need a C compiler.</p>

<h2 id="Memory-leaks"><a class="permalink" href="perl5005delta.html#Memory-leaks">#</a><a id="Memory"></a>Memory leaks</h2>

<p><code>substr</code>, <code>pos</code> and <code>vec</code> don&#39;t leak memory anymore when used in lvalue context. Many small leaks that impacted applications that embed multiple interpreters have been fixed.</p>

<h2 id="Better-support-for-multiple-interpreters"><a class="permalink" href="perl5005delta.html#Better-support-for-multiple-interpreters">#</a><a id="Better"></a>Better support for multiple interpreters</h2>

<p>The build-time option <code>-DMULTIPLICITY</code> has had many of the details reworked. Some previously global variables that should have been per-interpreter now are. With care, this allows interpreters to call each other. See the <code>PerlInterp</code> extension on CPAN.</p>

<h2 id="Behavior-of-local()-on-array-and-hash-elements-is-now-well-defined"><a class="permalink" href="perl5005delta.html#Behavior-of-local()-on-array-and-hash-elements-is-now-well-defined">#</a><a id="Behavior"></a><a id="Behavior-of-local-on-array-and-hash-elements-is-now-well-defined"></a>Behavior of local() on array and hash elements is now well-defined</h2>

<p>See <a href="perlsub.html#Temporary-Values-via-local%28%29">&quot;Temporary Values via local()&quot; in perlsub</a>.</p>

<h2 id="%!-is-transparently-tied-to-the-Errno-module"><a class="permalink" href="perl5005delta.html#%25!-is-transparently-tied-to-the-Errno-module">#</a><a id="is-transparently-tied-to-the-Errno-module"></a><code>%!</code> is transparently tied to the <a href="Errno.html">Errno</a> module</h2>

<p>See <a href="perlvar.html">perlvar</a>, and <a href="Errno.html">Errno</a>.</p>

<h2 id="Pseudo-hashes-are-supported"><a class="permalink" href="perl5005delta.html#Pseudo-hashes-are-supported">#</a><a id="Pseudo"></a>Pseudo-hashes are supported</h2>

<p>See <a href="perlref.html">perlref</a>.</p>

<h2 id="EXPR-foreach-EXPR-is-supported"><a class="permalink" href="perl5005delta.html#EXPR-foreach-EXPR-is-supported">#</a><a id="EXPR"></a><code>EXPR foreach EXPR</code> is supported</h2>

<p>See <a href="perlsyn.html">perlsyn</a>.</p>

<h2 id="Keywords-can-be-globally-overridden"><a class="permalink" href="perl5005delta.html#Keywords-can-be-globally-overridden">#</a><a id="Keywords"></a>Keywords can be globally overridden</h2>

<p>See <a href="perlsub.html">perlsub</a>.</p>

<h2 id="$^E-is-meaningful-on-Win32"><a class="permalink" href="perl5005delta.html#$%5EE-is-meaningful-on-Win32">#</a><a id="E-is-meaningful-on-Win32"></a><code>$^E</code> is meaningful on Win32</h2>

<p>See <a href="perlvar.html">perlvar</a>.</p>

<h2 id="foreach-(1..1000000)-optimized"><a class="permalink" href="perl5005delta.html#foreach-(1..1000000)-optimized">#</a><a id="foreach"></a><a id="foreach-1..1000000-optimized"></a><code>foreach (1..1000000)</code> optimized</h2>

<p><code>foreach (1..1000000)</code> is now optimized into a counting loop. It does not try to allocate a 1000000-size list anymore.</p>

<h2 id="Foo::-can-be-used-as-implicitly-quoted-package-name"><a class="permalink" href="perl5005delta.html#Foo::-can-be-used-as-implicitly-quoted-package-name">#</a><a id="Foo"></a><code>Foo::</code> can be used as implicitly quoted package name</h2>

<p>Barewords caused unintuitive behavior when a subroutine with the same name as a package happened to be defined. Thus, <code>new Foo @args</code>, use the result of the call to <code>Foo()</code> instead of <code>Foo</code> being treated as a literal. The recommended way to write barewords in the indirect object slot is <code>new Foo:: @args</code>. Note that the method <code>new()</code> is called with a first argument of <code>Foo</code>, not <code>Foo::</code> when you do that.</p>

<h2 id="exists-$Foo::{Bar::}-tests-existence-of-a-package"><a class="permalink" href="perl5005delta.html#exists-$Foo::%7BBar::%7D-tests-existence-of-a-package">#</a><a id="exists"></a><a id="exists-Foo::-Bar::-tests-existence-of-a-package"></a><code>exists $Foo::{Bar::}</code> tests existence of a package</h2>

<p>It was impossible to test for the existence of a package without actually creating it before. Now <code>exists $Foo::{Bar::}</code> can be used to test if the <code>Foo::Bar</code> namespace has been created.</p>

<h2 id="Better-locale-support"><a class="permalink" href="perl5005delta.html#Better-locale-support">#</a><a id="Better1"></a>Better locale support</h2>

<p>See <a href="perllocale.html">perllocale</a>.</p>

<h2 id="Experimental-support-for-64-bit-platforms"><a class="permalink" href="perl5005delta.html#Experimental-support-for-64-bit-platforms">#</a><a id="Experimental"></a>Experimental support for 64-bit platforms</h2>

<p>Perl5 has always had 64-bit support on systems with 64-bit longs. Starting with 5.005, the beginnings of experimental support for systems with 32-bit long and 64-bit &#39;long long&#39; integers has been added. If you add -DUSE_LONG_LONG to your ccflags in config.sh (or manually define it in perl.h) then perl will be built with &#39;long long&#39; support. There will be many compiler warnings, and the resultant perl may not work on all systems. There are many other issues related to third-party extensions and libraries. This option exists to allow people to work on those issues.</p>

<h2 id="prototype()-returns-useful-results-on-builtins"><a class="permalink" href="perl5005delta.html#prototype()-returns-useful-results-on-builtins">#</a><a id="prototype"></a><a id="prototype-returns-useful-results-on-builtins"></a>prototype() returns useful results on builtins</h2>

<p>See <a href="perlfunc.html#prototype">&quot;prototype&quot; in perlfunc</a>.</p>

<h2 id="Extended-support-for-exception-handling"><a class="permalink" href="perl5005delta.html#Extended-support-for-exception-handling">#</a><a id="Extended"></a>Extended support for exception handling</h2>

<p><code>die()</code> now accepts a reference value, and <code>$@</code> gets set to that value in exception traps. This makes it possible to propagate exception objects. This is an undocumented <b>experimental</b> feature.</p>

<h2 id="Re-blessing-in-DESTROY()-supported-for-chaining-DESTROY()-methods"><a class="permalink" href="perl5005delta.html#Re-blessing-in-DESTROY()-supported-for-chaining-DESTROY()-methods">#</a><a id="Re"></a><a id="Re-blessing-in-DESTROY-supported-for-chaining-DESTROY-methods"></a>Re-blessing in DESTROY() supported for chaining DESTROY() methods</h2>

<p>See <a href="perlobj.html#Destructors">&quot;Destructors&quot; in perlobj</a>.</p>

<h2 id="All-printf-format-conversions-are-handled-internally"><a class="permalink" href="perl5005delta.html#All-printf-format-conversions-are-handled-internally">#</a><a id="All"></a>All <code>printf</code> format conversions are handled internally</h2>

<p>See <a href="perlfunc.html#printf">&quot;printf&quot; in perlfunc</a>.</p>

<h2 id="New-INIT-keyword"><a class="permalink" href="perl5005delta.html#New-INIT-keyword">#</a><a id="New2"></a>New <code>INIT</code> keyword</h2>

<p><code>INIT</code> subs are like <code>BEGIN</code> and <code>END</code>, but they get run just before the perl runtime begins execution. e.g., the Perl Compiler makes use of <code>INIT</code> blocks to initialize and resolve pointers to XSUBs.</p>

<h2 id="New-lock-keyword"><a class="permalink" href="perl5005delta.html#New-lock-keyword">#</a><a id="New3"></a>New <code>lock</code> keyword</h2>

<p>The <code>lock</code> keyword is the fundamental synchronization primitive in threaded perl. When threads are not enabled, it is currently a noop.</p>

<p>To minimize impact on source compatibility this keyword is &quot;weak&quot;, i.e., any user-defined subroutine of the same name overrides it, unless a <code>use Thread</code> has been seen.</p>

<h2 id="New-qr//-operator"><a class="permalink" href="perl5005delta.html#New-qr//-operator">#</a><a id="New4"></a><a id="New-qr-operator"></a>New <code>qr//</code> operator</h2>

<p>The <code>qr//</code> operator, which is syntactically similar to the other quote-like operators, is used to create precompiled regular expressions. This compiled form can now be explicitly passed around in variables, and interpolated in other regular expressions. See <a href="perlop.html">perlop</a>.</p>

<h2 id="our-is-now-a-reserved-word"><a class="permalink" href="perl5005delta.html#our-is-now-a-reserved-word">#</a><a id="our"></a><code>our</code> is now a reserved word</h2>

<p>Calling a subroutine with the name <code>our</code> will now provoke a warning when using the <code>-w</code> switch.</p>

<h2 id="Tied-arrays-are-now-fully-supported"><a class="permalink" href="perl5005delta.html#Tied-arrays-are-now-fully-supported">#</a><a id="Tied"></a>Tied arrays are now fully supported</h2>

<p>See <a href="./Tie::Array.html">Tie::Array</a>.</p>

<h2 id="Tied-handles-support-is-better"><a class="permalink" href="perl5005delta.html#Tied-handles-support-is-better">#</a><a id="Tied1"></a>Tied handles support is better</h2>

<p>Several missing hooks have been added. There is also a new base class for TIEARRAY implementations. See <a href="./Tie::Array.html">Tie::Array</a>.</p>

<h2 id="4th-argument-to-substr"><a class="permalink" href="perl5005delta.html#4th-argument-to-substr">#</a><a id="4th"></a><a id="th-argument-to-substr"></a>4th argument to substr</h2>

<p>substr() can now both return and replace in one operation. The optional 4th argument is the replacement string. See <a href="perlfunc.html#substr">&quot;substr&quot; in perlfunc</a>.</p>

<h2 id="Negative-LENGTH-argument-to-splice"><a class="permalink" href="perl5005delta.html#Negative-LENGTH-argument-to-splice">#</a><a id="Negative"></a>Negative LENGTH argument to splice</h2>

<p>splice() with a negative LENGTH argument now work similar to what the LENGTH did for substr(). Previously a negative LENGTH was treated as 0. See <a href="perlfunc.html#splice">&quot;splice&quot; in perlfunc</a>.</p>

<h2 id="Magic-lvalues-are-now-more-magical"><a class="permalink" href="perl5005delta.html#Magic-lvalues-are-now-more-magical">#</a><a id="Magic"></a>Magic lvalues are now more magical</h2>

<p>When you say something like <code>substr($x, 5) = &quot;hi&quot;</code>, the scalar returned by substr() is special, in that any modifications to it affect $x. (This is called a &#39;magic lvalue&#39; because an &#39;lvalue&#39; is something on the left side of an assignment.) Normally, this is exactly what you would expect to happen, but Perl uses the same magic if you use substr(), pos(), or vec() in a context where they might be modified, like taking a reference with <code>\</code> or as an argument to a sub that modifies <code>@_</code>. In previous versions, this &#39;magic&#39; only went one way, but now changes to the scalar the magic refers to ($x in the above example) affect the magic lvalue too. For instance, this code now acts differently:</p>

<pre><code>    $x = &quot;hello&quot;;
    sub printit {
	$x = &quot;g&#39;bye&quot;;
	print $_[0], &quot;\n&quot;;
    }
    printit(substr($x, 0, 5));</code></pre>

<p>In previous versions, this would print &quot;hello&quot;, but it now prints &quot;g&#39;bye&quot;.</p>

<h2 id="&lt;&gt;-now-reads-in-records"><a class="permalink" href="perl5005delta.html#%3C%3E-now-reads-in-records">#</a><a id="now-reads-in-records"></a>&lt;&gt; now reads in records</h2>

<p>If <code>$/</code> is a reference to an integer, or a scalar that holds an integer, &lt;&gt; will read in records instead of lines. For more info, see <a href="perlvar.html#%24%2F">&quot;$/&quot; in perlvar</a>.</p>

<h1 id="Supported-Platforms"><a class="permalink" href="perl5005delta.html#Supported-Platforms">#</a><a id="Supported"></a>Supported Platforms</h1>

<p>Configure has many incremental improvements. Site-wide policy for building perl can now be made persistent, via Policy.sh. Configure also records the command-line arguments used in <i>config.sh</i>.</p>

<h2 id="New-Platforms"><a class="permalink" href="perl5005delta.html#New-Platforms">#</a><a id="New5"></a>New Platforms</h2>

<p>BeOS is now supported. See <i>README.beos</i>.</p>

<p>DOS is now supported under the DJGPP tools. See <i>README.dos</i> (installed as <a href="perldos.html">perldos</a> on some systems).</p>

<p>MiNT is now supported. See <i>README.mint</i>.</p>

<p>MPE/iX is now supported. See README.mpeix.</p>

<p>MVS (aka OS390, aka Open Edition) is now supported. See <i>README.os390</i> (installed as <a href="perlos390.html">perlos390</a> on some systems).</p>

<p>Stratus VOS is now supported. See <i>README.vos</i>.</p>

<h2 id="Changes-in-existing-support"><a class="permalink" href="perl5005delta.html#Changes-in-existing-support">#</a><a id="Changes"></a>Changes in existing support</h2>

<p>Win32 support has been vastly enhanced. Support for Perl Object, a C++ encapsulation of Perl. GCC and EGCS are now supported on Win32. See <i>README.win32</i>, aka <a href="perlwin32.html">perlwin32</a>.</p>

<p>VMS configuration system has been rewritten. See <i>README.vms</i> (installed as <i>README_vms</i> on some systems).</p>

<p>The hints files for most Unix platforms have seen incremental improvements.</p>

<h1 id="Modules-and-Pragmata"><a class="permalink" href="perl5005delta.html#Modules-and-Pragmata">#</a><a id="Modules"></a>Modules and Pragmata</h1>

<h2 id="New-Modules"><a class="permalink" href="perl5005delta.html#New-Modules">#</a><a id="New6"></a>New Modules</h2>

<dl>

<dt id="B"><a class="permalink" href="perl5005delta.html#B">#</a>B</dt>
<dd>

<p>Perl compiler and tools. See <a href="B.html">B</a>.</p>

</dd>
<dt id="Data::Dumper"><a class="permalink" href="perl5005delta.html#Data::Dumper">#</a><a id="Data"></a>Data::Dumper</dt>
<dd>

<p>A module to pretty print Perl data. See <a href="./Data::Dumper.html">Data::Dumper</a>.</p>

</dd>
<dt id="Dumpvalue"><a class="permalink" href="perl5005delta.html#Dumpvalue">#</a>Dumpvalue</dt>
<dd>

<p>A module to dump perl values to the screen. See <a href="Dumpvalue.html">Dumpvalue</a>.</p>

</dd>
<dt id="Errno"><a class="permalink" href="perl5005delta.html#Errno">#</a>Errno</dt>
<dd>

<p>A module to look up errors more conveniently. See <a href="Errno.html">Errno</a>.</p>

</dd>
<dt id="File::Spec"><a class="permalink" href="perl5005delta.html#File::Spec">#</a><a id="File"></a>File::Spec</dt>
<dd>

<p>A portable API for file operations.</p>

</dd>
<dt id="ExtUtils::Installed"><a class="permalink" href="perl5005delta.html#ExtUtils::Installed">#</a><a id="ExtUtils"></a>ExtUtils::Installed</dt>
<dd>

<p>Query and manage installed modules.</p>

</dd>
<dt id="ExtUtils::Packlist"><a class="permalink" href="perl5005delta.html#ExtUtils::Packlist">#</a><a id="ExtUtils1"></a>ExtUtils::Packlist</dt>
<dd>

<p>Manipulate .packlist files.</p>

</dd>
<dt id="Fatal"><a class="permalink" href="perl5005delta.html#Fatal">#</a>Fatal</dt>
<dd>

<p>Make functions/builtins succeed or die.</p>

</dd>
<dt id="IPC::SysV"><a class="permalink" href="perl5005delta.html#IPC::SysV">#</a><a id="IPC"></a>IPC::SysV</dt>
<dd>

<p>Constants and other support infrastructure for System V IPC operations in perl.</p>

</dd>
<dt id="Test"><a class="permalink" href="perl5005delta.html#Test">#</a>Test</dt>
<dd>

<p>A framework for writing test suites.</p>

</dd>
<dt id="Tie::Array"><a class="permalink" href="perl5005delta.html#Tie::Array">#</a><a id="Tie"></a>Tie::Array</dt>
<dd>

<p>Base class for tied arrays.</p>

</dd>
<dt id="Tie::Handle"><a class="permalink" href="perl5005delta.html#Tie::Handle">#</a><a id="Tie1"></a>Tie::Handle</dt>
<dd>

<p>Base class for tied handles.</p>

</dd>
<dt id="Thread"><a class="permalink" href="perl5005delta.html#Thread">#</a>Thread</dt>
<dd>

<p>Perl thread creation, manipulation, and support.</p>

</dd>
<dt id="attrs"><a class="permalink" href="perl5005delta.html#attrs">#</a>attrs</dt>
<dd>

<p>Set subroutine attributes.</p>

</dd>
<dt id="fields"><a class="permalink" href="perl5005delta.html#fields">#</a>fields</dt>
<dd>

<p>Compile-time class fields.</p>

</dd>
<dt id="re"><a class="permalink" href="perl5005delta.html#re">#</a>re</dt>
<dd>

<p>Various pragmata to control behavior of regular expressions.</p>

</dd>
</dl>

<h2 id="Changes-in-existing-modules"><a class="permalink" href="perl5005delta.html#Changes-in-existing-modules">#</a><a id="Changes1"></a>Changes in existing modules</h2>

<dl>

<dt id="Benchmark"><a class="permalink" href="perl5005delta.html#Benchmark">#</a>Benchmark</dt>
<dd>

<p>You can now run tests for <i>x</i> seconds instead of guessing the right number of tests to run.</p>

<p>Keeps better time.</p>

</dd>
<dt id="Carp"><a class="permalink" href="perl5005delta.html#Carp">#</a>Carp</dt>
<dd>

<p>Carp has a new function cluck(). cluck() warns, like carp(), but also adds a stack backtrace to the error message, like confess().</p>

</dd>
<dt id="CGI"><a class="permalink" href="perl5005delta.html#CGI">#</a>CGI</dt>
<dd>

<p>CGI has been updated to version 2.42.</p>

</dd>
<dt id="Fcntl"><a class="permalink" href="perl5005delta.html#Fcntl">#</a>Fcntl</dt>
<dd>

<p>More Fcntl constants added: F_SETLK64, F_SETLKW64, O_LARGEFILE for large (more than 4G) file access (the 64-bit support is not yet working, though, so no need to get overly excited), Free/Net/OpenBSD locking behaviour flags F_FLOCK, F_POSIX, Linux F_SHLCK, and O_ACCMODE: the mask of O_RDONLY, O_WRONLY, and O_RDWR.</p>

</dd>
<dt id="Math::Complex"><a class="permalink" href="perl5005delta.html#Math::Complex">#</a><a id="Math"></a>Math::Complex</dt>
<dd>

<p>The accessors methods Re, Im, arg, abs, rho, theta, methods can ($z-&gt;Re()) now also act as mutators ($z-&gt;Re(3)).</p>

</dd>
<dt id="Math::Trig"><a class="permalink" href="perl5005delta.html#Math::Trig">#</a><a id="Math1"></a>Math::Trig</dt>
<dd>

<p>A little bit of radial trigonometry (cylindrical and spherical) added, for example the great circle distance.</p>

</dd>
<dt id="POSIX"><a class="permalink" href="perl5005delta.html#POSIX">#</a>POSIX</dt>
<dd>

<p>POSIX now has its own platform-specific hints files.</p>

</dd>
<dt id="DB_File"><a class="permalink" href="perl5005delta.html#DB_File">#</a>DB_File</dt>
<dd>

<p>DB_File supports version 2.x of Berkeley DB. See <code>ext/DB_File/Changes</code>.</p>

</dd>
<dt id="MakeMaker"><a class="permalink" href="perl5005delta.html#MakeMaker">#</a>MakeMaker</dt>
<dd>

<p>MakeMaker now supports writing empty makefiles, provides a way to specify that site umask() policy should be honored. There is also better support for manipulation of .packlist files, and getting information about installed modules.</p>

<p>Extensions that have both architecture-dependent and architecture-independent files are now always installed completely in the architecture-dependent locations. Previously, the shareable parts were shared both across architectures and across perl versions and were therefore liable to be overwritten with newer versions that might have subtle incompatibilities.</p>

</dd>
<dt id="CPAN"><a class="permalink" href="perl5005delta.html#CPAN">#</a>CPAN</dt>
<dd>

<p>See <a href="perlmodinstall.html">perlmodinstall</a> and <a href="CPAN.html">CPAN</a>.</p>

</dd>
<dt id="Cwd"><a class="permalink" href="perl5005delta.html#Cwd">#</a>Cwd</dt>
<dd>

<p>Cwd::cwd is faster on most platforms.</p>

</dd>
</dl>

<h1 id="Utility-Changes"><a class="permalink" href="perl5005delta.html#Utility-Changes">#</a><a id="Utility"></a>Utility Changes</h1>

<p><code>h2ph</code> and related utilities have been vastly overhauled.</p>

<p><code>perlcc</code>, a new experimental front end for the compiler is available.</p>

<p>The crude GNU <code>configure</code> emulator is now called <code>configure.gnu</code> to avoid trampling on <code>Configure</code> under case-insensitive filesystems.</p>

<p><code>perldoc</code> used to be rather slow. The slower features are now optional. In particular, case-insensitive searches need the <code>-i</code> switch, and recursive searches need <code>-r</code>. You can set these switches in the <code>PERLDOC</code> environment variable to get the old behavior.</p>

<h1 id="Documentation-Changes"><a class="permalink" href="perl5005delta.html#Documentation-Changes">#</a><a id="Documentation"></a>Documentation Changes</h1>

<p>Config.pm now has a glossary of variables.</p>

<p><i>Porting/patching.pod</i> has detailed instructions on how to create and submit patches for perl.</p>

<p><a href="perlport.html">perlport</a> specifies guidelines on how to write portably.</p>

<p><a href="perlmodinstall.html">perlmodinstall</a> describes how to fetch and install modules from <code>CPAN</code> sites.</p>

<p>Some more Perl traps are documented now. See <a href="perltrap.html">perltrap</a>.</p>

<p><a href="perlopentut.html">perlopentut</a> gives a tutorial on using open().</p>

<p><a href="perlreftut.html">perlreftut</a> gives a tutorial on references.</p>

<p><a href="perlthrtut.html">perlthrtut</a> gives a tutorial on threads.</p>

<h1 id="New-Diagnostics"><a class="permalink" href="perl5005delta.html#New-Diagnostics">#</a><a id="New7"></a>New Diagnostics</h1>

<dl>

<dt id="Ambiguous-call-resolved-as-CORE::%s(),-qualify-as-such-or-use-&amp;"><a class="permalink" href="perl5005delta.html#Ambiguous-call-resolved-as-CORE::%25s(),-qualify-as-such-or-use-&amp;">#</a><a id="Ambiguous"></a><a id="Ambiguous-call-resolved-as-CORE::-s-qualify-as-such-or-use"></a>Ambiguous call resolved as CORE::%s(), qualify as such or use &amp;</dt>
<dd>

<p>(W) A subroutine you have declared has the same name as a Perl keyword, and you have used the name without qualification for calling one or the other. Perl decided to call the builtin because the subroutine is not imported.</p>

<p>To force interpretation as a subroutine call, either put an ampersand before the subroutine name, or qualify the name with its package. Alternatively, you can import the subroutine (or pretend that it&#39;s imported with the <code>use subs</code> pragma).</p>

<p>To silently interpret it as the Perl operator, use the <code>CORE::</code> prefix on the operator (e.g. <code>CORE::log($x)</code>) or by declaring the subroutine to be an object method (see <a href="perl5005delta.html#attrs">&quot;attrs&quot;</a>).</p>

</dd>
<dt id="Bad-index-while-coercing-array-into-hash"><a class="permalink" href="perl5005delta.html#Bad-index-while-coercing-array-into-hash">#</a><a id="Bad"></a>Bad index while coercing array into hash</dt>
<dd>

<p>(F) The index looked up in the hash found as the 0&#39;th element of a pseudo-hash is not legal. Index values must be at 1 or greater. See <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="Bareword-&quot;%s&quot;-refers-to-nonexistent-package"><a class="permalink" href="perl5005delta.html#Bareword-%22%25s%22-refers-to-nonexistent-package">#</a><a id="Bareword"></a><a id="Bareword-s-refers-to-nonexistent-package"></a>Bareword &quot;%s&quot; refers to nonexistent package</dt>
<dd>

<p>(W) You used a qualified bareword of the form <code>Foo::</code>, but the compiler saw no other uses of that namespace before that point. Perhaps you need to predeclare a package?</p>

</dd>
<dt id="Can&#39;t-call-method-&quot;%s&quot;-on-an-undefined-value"><a class="permalink" href="perl5005delta.html#Can&#39;t-call-method-%22%25s%22-on-an-undefined-value">#</a><a id="Can"></a><a id="Cant-call-method-s-on-an-undefined-value"></a>Can&#39;t call method &quot;%s&quot; on an undefined value</dt>
<dd>

<p>(F) You used the syntax of a method call, but the slot filled by the object reference or package name contains an undefined value. Something like this will reproduce the error:</p>

<pre><code>$BADREF = 42;
process $BADREF 1,2,3;
$BADREF-&gt;process(1,2,3);</code></pre>

</dd>
<dt id="Can&#39;t-check-filesystem-of-script-&quot;%s&quot;-for-nosuid"><a class="permalink" href="perl5005delta.html#Can&#39;t-check-filesystem-of-script-%22%25s%22-for-nosuid">#</a><a id="Can1"></a><a id="Cant-check-filesystem-of-script-s-for-nosuid"></a>Can&#39;t check filesystem of script &quot;%s&quot; for nosuid</dt>
<dd>

<p>(P) For some reason you can&#39;t check the filesystem of the script for nosuid.</p>

</dd>
<dt id="Can&#39;t-coerce-array-into-hash"><a class="permalink" href="perl5005delta.html#Can&#39;t-coerce-array-into-hash">#</a><a id="Can2"></a><a id="Cant-coerce-array-into-hash"></a>Can&#39;t coerce array into hash</dt>
<dd>

<p>(F) You used an array where a hash was expected, but the array has no information on how to map from keys to array indices. You can do that only with arrays that have a hash reference at index 0.</p>

</dd>
<dt id="Can&#39;t-goto-subroutine-from-an-eval-string"><a class="permalink" href="perl5005delta.html#Can&#39;t-goto-subroutine-from-an-eval-string">#</a><a id="Can3"></a><a id="Cant-goto-subroutine-from-an-eval-string"></a>Can&#39;t goto subroutine from an eval-string</dt>
<dd>

<p>(F) The &quot;goto subroutine&quot; call can&#39;t be used to jump out of an eval &quot;string&quot;. (You can use it to jump out of an eval {BLOCK}, but you probably don&#39;t want to.)</p>

</dd>
<dt id="Can&#39;t-localize-pseudo-hash-element"><a class="permalink" href="perl5005delta.html#Can&#39;t-localize-pseudo-hash-element">#</a><a id="Can4"></a><a id="Cant-localize-pseudo-hash-element"></a>Can&#39;t localize pseudo-hash element</dt>
<dd>

<p>(F) You said something like <code>local $ar-&gt;{&#39;key&#39;}</code>, where $ar is a reference to a pseudo-hash. That hasn&#39;t been implemented yet, but you can get a similar effect by localizing the corresponding array element directly: <code>local $ar-&gt;[$ar-&gt;[0]{&#39;key&#39;}]</code>.</p>

</dd>
<dt id="Can&#39;t-use-%%!-because-Errno.pm-is-not-available"><a class="permalink" href="perl5005delta.html#Can&#39;t-use-%25%25!-because-Errno.pm-is-not-available">#</a><a id="Can5"></a><a id="Cant-use-because-Errno.pm-is-not-available"></a>Can&#39;t use %%! because Errno.pm is not available</dt>
<dd>

<p>(F) The first time the %! hash is used, perl automatically loads the Errno.pm module. The Errno module is expected to tie the %! hash to provide symbolic names for <code>$!</code> errno values.</p>

</dd>
<dt id="Cannot-find-an-opnumber-for-&quot;%s&quot;"><a class="permalink" href="perl5005delta.html#Cannot-find-an-opnumber-for-%22%25s%22">#</a><a id="Cannot"></a><a id="Cannot-find-an-opnumber-for-s"></a>Cannot find an opnumber for &quot;%s&quot;</dt>
<dd>

<p>(F) A string of a form <code>CORE::word</code> was given to prototype(), but there is no builtin with the name <code>word</code>.</p>

</dd>
<dt id="Character-class-syntax-[.-.]-is-reserved-for-future-extensions"><a class="permalink" href="perl5005delta.html#Character-class-syntax-%5B.-.%5D-is-reserved-for-future-extensions">#</a><a id="Character"></a><a id="Character-class-syntax-.-.-is-reserved-for-future-extensions"></a>Character class syntax [. .] is reserved for future extensions</dt>
<dd>

<p>(W) Within regular expression character classes ([]) the syntax beginning with &quot;[.&quot; and ending with &quot;.]&quot; is reserved for future extensions. If you need to represent those character sequences inside a regular expression character class, just quote the square brackets with the backslash: &quot;\[.&quot; and &quot;.\]&quot;.</p>

</dd>
<dt id="Character-class-syntax-[:-:]-is-reserved-for-future-extensions"><a class="permalink" href="perl5005delta.html#Character-class-syntax-%5B:-:%5D-is-reserved-for-future-extensions">#</a><a id="Character1"></a><a id="Character-class-syntax-:-:-is-reserved-for-future-extensions"></a>Character class syntax [: :] is reserved for future extensions</dt>
<dd>

<p>(W) Within regular expression character classes ([]) the syntax beginning with &quot;[:&quot; and ending with &quot;:]&quot; is reserved for future extensions. If you need to represent those character sequences inside a regular expression character class, just quote the square brackets with the backslash: &quot;\[:&quot; and &quot;:\]&quot;.</p>

</dd>
<dt id="Character-class-syntax-[=-=]-is-reserved-for-future-extensions"><a class="permalink" href="perl5005delta.html#Character-class-syntax-%5B=-=%5D-is-reserved-for-future-extensions">#</a><a id="Character2"></a><a id="Character-class-syntax-is-reserved-for-future-extensions"></a>Character class syntax [= =] is reserved for future extensions</dt>
<dd>

<p>(W) Within regular expression character classes ([]) the syntax beginning with &quot;[=&quot; and ending with &quot;=]&quot; is reserved for future extensions. If you need to represent those character sequences inside a regular expression character class, just quote the square brackets with the backslash: &quot;\[=&quot; and &quot;=\]&quot;.</p>

</dd>
<dt id="%s:-Eval-group-in-insecure-regular-expression"><a class="permalink" href="perl5005delta.html#%25s:-Eval-group-in-insecure-regular-expression">#</a><a id="s:-Eval-group-in-insecure-regular-expression"></a>%s: Eval-group in insecure regular expression</dt>
<dd>

<p>(F) Perl detected tainted data when trying to compile a regular expression that contains the <code>(?{ ... })</code> zero-width assertion, which is unsafe. See <a href="perlre.html#%28%3F%7B-code-%7D%29">&quot;(?{ code })&quot; in perlre</a>, and <a href="perlsec.html">perlsec</a>.</p>

</dd>
<dt id="%s:-Eval-group-not-allowed,-use-re-&#39;eval&#39;"><a class="permalink" href="perl5005delta.html#%25s:-Eval-group-not-allowed,-use-re-&#39;eval&#39;">#</a><a id="s:-Eval-group-not-allowed-use-re-eval"></a>%s: Eval-group not allowed, use re &#39;eval&#39;</dt>
<dd>

<p>(F) A regular expression contained the <code>(?{ ... })</code> zero-width assertion, but that construct is only allowed when the <code>use re &#39;eval&#39;</code> pragma is in effect. See <a href="perlre.html#%28%3F%7B-code-%7D%29">&quot;(?{ code })&quot; in perlre</a>.</p>

</dd>
<dt id="%s:-Eval-group-not-allowed-at-run-time"><a class="permalink" href="perl5005delta.html#%25s:-Eval-group-not-allowed-at-run-time">#</a><a id="s:-Eval-group-not-allowed-at-run-time"></a>%s: Eval-group not allowed at run time</dt>
<dd>

<p>(F) Perl tried to compile a regular expression containing the <code>(?{ ... })</code> zero-width assertion at run time, as it would when the pattern contains interpolated values. Since that is a security risk, it is not allowed. If you insist, you may still do this by explicitly building the pattern from an interpolated string at run time and using that in an eval(). See <a href="perlre.html#%28%3F%7B-code-%7D%29">&quot;(?{ code })&quot; in perlre</a>.</p>

</dd>
<dt id="Explicit-blessing-to-&#39;&#39;-(assuming-package-main)"><a class="permalink" href="perl5005delta.html#Explicit-blessing-to-&#39;&#39;-(assuming-package-main)">#</a><a id="Explicit"></a><a id="Explicit-blessing-to-assuming-package-main"></a>Explicit blessing to &#39;&#39; (assuming package main)</dt>
<dd>

<p>(W) You are blessing a reference to a zero length string. This has the effect of blessing the reference into the package main. This is usually not what you want. Consider providing a default target package, e.g. bless($ref, $p || &#39;MyPackage&#39;);</p>

</dd>
<dt id="Illegal-hex-digit-ignored"><a class="permalink" href="perl5005delta.html#Illegal-hex-digit-ignored">#</a><a id="Illegal"></a>Illegal hex digit ignored</dt>
<dd>

<p>(W) You may have tried to use a character other than 0 - 9 or A - F in a hexadecimal number. Interpretation of the hexadecimal number stopped before the illegal character.</p>

</dd>
<dt id="No-such-array-field"><a class="permalink" href="perl5005delta.html#No-such-array-field">#</a><a id="No"></a>No such array field</dt>
<dd>

<p>(F) You tried to access an array as a hash, but the field name used is not defined. The hash at index 0 should map all valid field names to array indices for that to work.</p>

</dd>
<dt id="No-such-field-&quot;%s&quot;-in-variable-%s-of-type-%s"><a class="permalink" href="perl5005delta.html#No-such-field-%22%25s%22-in-variable-%25s-of-type-%25s">#</a><a id="No1"></a><a id="No-such-field-s-in-variable-s-of-type-s"></a>No such field &quot;%s&quot; in variable %s of type %s</dt>
<dd>

<p>(F) You tried to access a field of a typed variable where the type does not know about the field name. The field names are looked up in the %FIELDS hash in the type package at compile time. The %FIELDS hash is usually set up with the &#39;fields&#39; pragma.</p>

</dd>
<dt id="Out-of-memory-during-ridiculously-large-request"><a class="permalink" href="perl5005delta.html#Out-of-memory-during-ridiculously-large-request">#</a><a id="Out"></a>Out of memory during ridiculously large request</dt>
<dd>

<p>(F) You can&#39;t allocate more than 2^31+&quot;small amount&quot; bytes. This error is most likely to be caused by a typo in the Perl program. e.g., <code>$arr[time]</code> instead of <code>$arr[$time]</code>.</p>

</dd>
<dt id="Range-iterator-outside-integer-range"><a class="permalink" href="perl5005delta.html#Range-iterator-outside-integer-range">#</a><a id="Range"></a>Range iterator outside integer range</dt>
<dd>

<p>(F) One (or both) of the numeric arguments to the range operator &quot;..&quot; are outside the range which can be represented by integers internally. One possible workaround is to force Perl to use magical string increment by prepending &quot;0&quot; to your numbers.</p>

</dd>
<dt id="Recursive-inheritance-detected-while-looking-for-method-&#39;%s&#39;-%s"><a class="permalink" href="perl5005delta.html#Recursive-inheritance-detected-while-looking-for-method-&#39;%25s&#39;-%25s">#</a><a id="Recursive"></a><a id="Recursive-inheritance-detected-while-looking-for-method-s-s"></a>Recursive inheritance detected while looking for method &#39;%s&#39; %s</dt>
<dd>

<p>(F) More than 100 levels of inheritance were encountered while invoking a method. Probably indicates an unintended loop in your inheritance hierarchy.</p>

</dd>
<dt id="Reference-found-where-even-sized-list-expected"><a class="permalink" href="perl5005delta.html#Reference-found-where-even-sized-list-expected">#</a><a id="Reference"></a>Reference found where even-sized list expected</dt>
<dd>

<p>(W) You gave a single reference where Perl was expecting a list with an even number of elements (for assignment to a hash). This usually means that you used the anon hash constructor when you meant to use parens. In any case, a hash requires key/value <b>pairs</b>.</p>

<pre><code>%hash = { one =&gt; 1, two =&gt; 2, };   # WRONG
%hash = [ qw/ an anon array / ];   # WRONG
%hash = ( one =&gt; 1, two =&gt; 2, );   # right
%hash = qw( one 1 two 2 );                 # also fine</code></pre>

</dd>
<dt id="Undefined-value-assigned-to-typeglob"><a class="permalink" href="perl5005delta.html#Undefined-value-assigned-to-typeglob">#</a><a id="Undefined"></a>Undefined value assigned to typeglob</dt>
<dd>

<p>(W) An undefined value was assigned to a typeglob, a la <code>*foo = undef</code>. This does nothing. It&#39;s possible that you really mean <code>undef *foo</code>.</p>

</dd>
<dt id="Use-of-reserved-word-&quot;%s&quot;-is-deprecated"><a class="permalink" href="perl5005delta.html#Use-of-reserved-word-%22%25s%22-is-deprecated">#</a><a id="Use"></a><a id="Use-of-reserved-word-s-is-deprecated"></a>Use of reserved word &quot;%s&quot; is deprecated</dt>
<dd>

<p>(D) The indicated bareword is a reserved word. Future versions of perl may use it as a keyword, so you&#39;re better off either explicitly quoting the word in a manner appropriate for its context of use, or using a different name altogether. The warning can be suppressed for subroutine names by either adding a <code>&amp;</code> prefix, or using a package qualifier, e.g. <code>&amp;our()</code>, or <code>Foo::our()</code>.</p>

</dd>
<dt id="perl:-warning:-Setting-locale-failed."><a class="permalink" href="perl5005delta.html#perl:-warning:-Setting-locale-failed.">#</a><a id="perl"></a><a id="perl:-warning:-Setting-locale-failed"></a>perl: warning: Setting locale failed.</dt>
<dd>

<p>(S) The whole warning message will look something like:</p>

<pre><code class="plaintext">perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = &quot;En_US&quot;,
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (&quot;C&quot;).</code></pre>

<p>Exactly what were the failed locale settings varies. In the above the settings were that the LC_ALL was &quot;En_US&quot; and the LANG had no value. This error means that Perl detected that you and/or your system administrator have set up the so-called variable system but Perl could not use those settings. This was not dead serious, fortunately: there is a &quot;default locale&quot; called &quot;C&quot; that Perl can and will use, the script will be run. Before you really fix the problem, however, you will get the same error message each time you run Perl. How to really fix the problem can be found in <a href="perllocale.html#LOCALE-PROBLEMS">&quot;LOCALE PROBLEMS&quot; in perllocale</a>.</p>

</dd>
</dl>

<h1 id="Obsolete-Diagnostics"><a class="permalink" href="perl5005delta.html#Obsolete-Diagnostics">#</a><a id="Obsolete"></a>Obsolete Diagnostics</h1>

<dl>

<dt id="Can&#39;t-mktemp()"><a class="permalink" href="perl5005delta.html#Can&#39;t-mktemp()">#</a><a id="Can6"></a><a id="Cant-mktemp"></a>Can&#39;t mktemp()</dt>
<dd>

<p>(F) The mktemp() routine failed for some reason while trying to process a <b>-e</b> switch. Maybe your /tmp partition is full, or clobbered.</p>

<p>Removed because <b>-e</b> doesn&#39;t use temporary files any more.</p>

</dd>
<dt id="Can&#39;t-write-to-temp-file-for-e:-%s"><a class="permalink" href="perl5005delta.html#Can&#39;t-write-to-temp-file-for-e:-%25s">#</a><a id="Can7"></a><a id="Cant-write-to-temp-file-for--e:-s"></a>Can&#39;t write to temp file for <b>-e</b>: %s</dt>
<dd>

<p>(F) The write routine failed for some reason while trying to process a <b>-e</b> switch. Maybe your /tmp partition is full, or clobbered.</p>

<p>Removed because <b>-e</b> doesn&#39;t use temporary files any more.</p>

</dd>
<dt id="Cannot-open-temporary-file"><a class="permalink" href="perl5005delta.html#Cannot-open-temporary-file">#</a><a id="Cannot1"></a>Cannot open temporary file</dt>
<dd>

<p>(F) The create routine failed for some reason while trying to process a <b>-e</b> switch. Maybe your /tmp partition is full, or clobbered.</p>

<p>Removed because <b>-e</b> doesn&#39;t use temporary files any more.</p>

</dd>
<dt id="regexp-too-big"><a class="permalink" href="perl5005delta.html#regexp-too-big">#</a><a id="regexp"></a>regexp too big</dt>
<dd>

<p>(F) The current implementation of regular expressions uses shorts as address offsets within a string. Unfortunately this means that if the regular expression compiles to longer than 32767, it&#39;ll blow up. Usually when you want a regular expression this big, there is a better way to do it with multiple statements. See <a href="perlre.html">perlre</a>.</p>

</dd>
</dl>

<h1 id="Configuration-Changes"><a class="permalink" href="perl5005delta.html#Configuration-Changes">#</a><a id="Configuration"></a>Configuration Changes</h1>

<p>You can use &quot;Configure -Uinstallusrbinperl&quot; which causes installperl to skip installing perl also as /usr/bin/perl. This is useful if you prefer not to modify /usr/bin for some reason or another but harmful because many scripts assume to find Perl in /usr/bin/perl.</p>

<h1 id="BUGS"><a class="permalink" href="perl5005delta.html#BUGS">#</a>BUGS</h1>

<p>If you find what you think is a bug, you might check the headers of recently posted articles in the comp.lang.perl.misc newsgroup. There may also be information at http://www.perl.com/perl/ , the Perl Home Page.</p>

<p>If you believe you have an unreported bug, please run the <b>perlbug</b> program included with your release. Make sure you trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of <code>perl -V</code>, will be sent off to &lt;<i>perlbug@perl.com</i>&gt; to be analysed by the Perl porting team.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perl5005delta.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p>The <i>Changes</i> file for exhaustive details on what changed.</p>

<p>The <i>INSTALL</i> file for how to build Perl.</p>

<p>The <i>README</i> file for general stuff.</p>

<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>

<h1 id="HISTORY"><a class="permalink" href="perl5005delta.html#HISTORY">#</a>HISTORY</h1>

<p>Written by Gurusamy Sarathy &lt;<i>gsar@activestate.com</i>&gt;, with many contributions from The Perl Porters.</p>

<p>Send omissions or corrections to &lt;<i>perlbug@perl.com</i>&gt;.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
